cmake_minimum_required(VERSION 3.10)
project(Algorithm)

set(CMAKE_CXX_STANDARD 11)



add_executable(main main.cpp)
add_executable(ConvexHull_Enum ConvexHull_Enum.cpp)
add_executable(ConvexHull_Graham_Scan ConvexHull_Graham_Scan.cpp)
add_executable(ConvexHull_Divide ConvexHull_Divide.cpp)
add_executable(Set_Cover_Greedy Set_Cover_Greedy.cpp)
add_executable(Set_Cover_Approx Set_Cover_Approx.cpp)
add_executable(glpk_test glpk_test.cpp)

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
target_link_libraries( main ${OpenCV_LIBS} )
target_link_libraries( ConvexHull_Enum ${OpenCV_LIBS} )
target_link_libraries( ConvexHull_Graham_Scan ${OpenCV_LIBS} )
target_link_libraries( ConvexHull_Divide ${OpenCV_LIBS} )
target_link_libraries( Set_Cover_Greedy ${OpenCV_LIBS} )
target_link_libraries( Set_Cover_Approx ${OpenCV_LIBS} )

link_libraries(glpk)
target_link_libraries( Set_Cover_Approx glpk )
target_link_libraries( glpk_test glpk )